package wschat.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;
import wschat.event.CloseConnectionListener;
import wschat.event.NewConnectionListener;
import wschat.event.StartConnectionListener;

/**
 * Created by alex on 15-1-24.
 */
@Configuration
public class AppConfig {

    @Bean
    @Description("new websocket connected listener")
    public NewConnectionListener newConnectionListener(){
        return new NewConnectionListener();
    }   
    
    @Bean
    @Description("start websocket connected listener")
    public StartConnectionListener startConnectionListener(){
        return new StartConnectionListener();
    }   
    
    @Bean
    @Description("close websocket connected listener")
    public CloseConnectionListener closeConnectionListener(){
        return new CloseConnectionListener();
    }
    
}
